package com.jinsilu.freight.http.request;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestHost;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.BodyType;
import com.jinsilu.freight.other.MTLConstants;

/**
 * 上传卸车磅单
 *
 * @author yangyang
 * @time 2020-11-20 12:47
 */
public class UploadUnloadPoundsApi implements IRequestApi, IRequestType {

    private String waybillNumber;
    private String weight;
    private String imageUrl;
    private String longitude;
    private String latitude;
    private String unloadAddress;

    @Override
    public String getApi() {
        return "api/waybill/setUnload";
    }

    @Override
    public BodyType getType() {
        return BodyType.FORM;
    }

    public UploadUnloadPoundsApi setWaybillNumber(String waybillNumber) {
        this.waybillNumber = waybillNumber;
        return this;
    }

    public UploadUnloadPoundsApi setWeight(String weight) {
        this.weight = weight;
        return this;
    }

    public UploadUnloadPoundsApi setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
        return this;
    }

    public UploadUnloadPoundsApi setLongitude(String longitude) {
        this.longitude = longitude;
        return this;
    }

    public UploadUnloadPoundsApi setLatitude(String latitude) {
        this.latitude = latitude;
        return this;
    }

    public UploadUnloadPoundsApi setUnloadAddress(String unloadAddress) {
        this.unloadAddress = unloadAddress;
        return this;
    }
}
